[IA64] Fix sparse tree xenoprof/perfmon/oprofile build dependencies
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Thu, 30 Nov 2006 22:57:15 +0000 (15:57 -0700)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Thu, 30 Nov 2006 22:57:15 +0000 (15:57 -0700)
Compile xenoprof perfmon related hypercall even when
CONFIG_PERFMON, CONFIG_OPROFILE, CONFIG_OPROFILE_MODULE are disabled.
They should be compiled in vmlinux unconditionally because they
might be called by other modules in theory.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
linux-2.6-xen-sparse/arch/ia64/xen/xcom_hcall.c
linux-2.6-xen-sparse/arch/ia64/xen/xcom_mini.c
linux-2.6-xen-sparse/include/asm-ia64/hypercall.h
linux-2.6-xen-sparse/include/asm-ia64/xen/xcom_hcall.h

index ec46b840376f92a2698d0abeb5b078c0c6eb3cba..49f9ea6708778fb6b1196c47d56f647f40c2981b 100644 (file)
@@ -304,7 +304,6 @@ xencomm_hypercall_suspend(unsigned long srec)
        return xencomm_arch_hypercall_suspend(xencomm_create_inline(&arg));
 }
 
-#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
 int
 xencomm_hypercall_xenoprof_op(int op, void *arg)
 {
@@ -336,9 +335,7 @@ xencomm_hypercall_xenoprof_op(int op, void *arg)
        return xencomm_arch_hypercall_xenoprof_op(op,
                                                  xencomm_create_inline(arg));
 }
-#endif
 
-#ifdef CONFIG_PERFMON
 int
 xencomm_hypercall_perfmon_op(unsigned long cmd, void* arg, unsigned long count)
 {
@@ -366,4 +363,3 @@ xencomm_hypercall_perfmon_op(unsigned long cmd, void* arg, unsigned long count)
                                                 xencomm_create_inline(arg),
                                                 count);
 }
-#endif
index adc01f1fd5159acb2fa2de19db21ce3de759efdc..a2f2c97ac47cba24c7293d911b0633b94e8288b6 100644 (file)
@@ -323,7 +323,6 @@ xencomm_mini_hypercall_xen_version(int cmd, void *arg)
 }
 EXPORT_SYMBOL(xencomm_mini_hypercall_xen_version);
 
-#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
 int
 xencomm_mini_hypercall_xenoprof_op(int op, void *arg)
 {
@@ -372,9 +371,7 @@ xencomm_mini_hypercall_xenoprof_op(int op, void *arg)
        return xencomm_arch_hypercall_xenoprof_op(op, desc);
 }
 EXPORT_SYMBOL_GPL(xencomm_mini_hypercall_xenoprof_op);
-#endif
 
-#ifdef CONFIG_PERFMON
 int
 xencomm_mini_hypercall_perfmon_op(unsigned long cmd, void* arg,
                                   unsigned long count)
@@ -418,4 +415,3 @@ xencomm_mini_hypercall_perfmon_op(unsigned long cmd, void* arg,
        return xencomm_arch_hypercall_perfmon_op(cmd, desc, count);
 }
 EXPORT_SYMBOL_GPL(xencomm_mini_hypercall_perfmon_op);
-#endif
index 67b8526f693ad79b2c288ffe4d3fa17cd422a5be..4b5ea2dae054d59a0dc2f0648c4c0718a4b5e324 100644 (file)
@@ -399,7 +399,6 @@ HYPERVISOR_expose_p2m(unsigned long conv_start_gpfn,
 }
 #endif
 
-#ifdef CONFIG_PERFMON
 static inline int
 xencomm_arch_hypercall_perfmon_op(unsigned long cmd,
                                   struct xencomm_handle *arg,
@@ -408,7 +407,6 @@ xencomm_arch_hypercall_perfmon_op(unsigned long cmd,
        return _hypercall4(int, ia64_dom0vp_op,
                           IA64_DOM0VP_perfmon, cmd, arg, count);
 }
-#endif
 
 // for balloon driver
 #define HYPERVISOR_update_va_mapping(va, new_val, flags) (0)
index df5204f46982e548c6ed5cc33a213244e61d5393..79e790d75b47a9b3f84aef4dc3e9546191b638a0 100644 (file)
@@ -46,14 +46,10 @@ extern unsigned long xencomm_hypercall_hvm_op(int cmd, void *arg);
 
 extern int xencomm_hypercall_suspend(unsigned long srec);
 
-#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
 extern int xencomm_hypercall_xenoprof_op(int op, void *arg);
-#endif
 
-#ifdef CONFIG_PERFMON
 extern int xencomm_hypercall_perfmon_op(unsigned long cmd, void* arg,
                                         unsigned long count);
-#endif
 
 /* Using mini xencomm.  */
 extern int xencomm_mini_hypercall_console_io(int cmd, int count, char *str);
@@ -77,14 +73,10 @@ extern int xencomm_mini_hypercall_memory_op(unsigned int cmd, void *arg);
 
 extern unsigned long xencomm_mini_hypercall_hvm_op(int cmd, void *arg);
 
-#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
 extern int xencomm_mini_hypercall_xenoprof_op(int op, void *arg);
-#endif
 
-#ifdef CONFIG_PERFMON
 extern int xencomm_mini_hypercall_perfmon_op(unsigned long cmd, void* arg,
                                              unsigned long count);
-#endif
 
 /* For privcmd.  Locally declare argument type to avoid include storm.
    Type coherency will be checked within privcmd.c  */